<div class="row">
    <div id="health-area" class="col-sm-12 top10">
        <div class="col-sm-3 user-add-btn pull-right mt15 nopadding-right">
            {{#if roomGroup}}
                {{#ui/mix-button class=" user-btn pull-right" iconClass="fa-plus" text='添加房间' clickAction="addData" addData="addData" }}
                {{/ui/mix-button}}
            {{else}}
                {{#if bedGroup}}
                    {{#ui/mix-button class=" user-btn pull-right" iconClass="fa-plus" text='添加床位' clickAction="addData" addData="addData" }}
                    {{/ui/mix-button}}
                {{else}}
                    {{#ui/mix-button class=" user-btn pull-right" iconClass="fa-plus" text='添加公共区域' clickAction="addData" addData="addData" }}
                    {{/ui/mix-button}}
                {{/if}}
            {{/if}}
        </div>
    </div>
</div>
<div class="col-sm-12 nopadding-left nopadding-right">
    <div class="">
        <div class="box-body">
            <div id="datatable1_wrapper" class="dataTables_wrapper form-inline " role="grid">
                <table id="datatable1" cellpadding="0" cellspacing="0" border="0" class="datatable table table-bordered table-hover dataTable mt15" aria-describedby="datatable1_info">
                    <thead>
                        <tr role="row">
                            <th rowspan="1" colspan="1" width="">名称</th>
                            <th rowspan="1" colspan="1" width="">备注</th>
                        </tr>
                    </thead>
                    <tbody role="alert" aria-live="polite" aria-relevant="all" class="">
                        {{#each informationList as |information|}}
                            <tr class="gradeA odd" {{action "toDetailPage" information on="click"}}>
                                <td class=" ellipsis ">{{information.typename}}</td>
                                <td class=" ellipsis">{{information.remark}}</td>
                            </tr>
                        {{/each}}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <!-- /BOX -->
</div>
<!--添加维护信息  -->
{{#if showpopInvitePassModal}}
    {{#bs-modal body=false footer=false header=false closedAction=(action "invitation")}}
        {{#bs-modal-header}}
            {{#if addDict}}
                {{#if roomGroup}}
                    <h4 class="modal-title">添加房间</h4>
                {{else}}
                    {{#if bedGroup}}
                        <h4 class="modal-title">添加床位</h4>
                    {{else}}
                        <h4 class="modal-title">添加公共区域</h4>
                    {{/if}}
                {{/if}}
            {{else}}
                {{#if roomGroup}}
                    <h4 class="modal-title">房间信息</h4>
                {{else}}
                    {{#if bedGroup}}
                        <h4 class="modal-title">床位信息</h4>
                    {{else}}
                        <h4 class="modal-title">公共区域信息</h4>
                    {{/if}}
                {{/if}}
            {{/if}}
        {{/bs-modal-header}}
        {{#bs-modal-body}}
            <div class="modal-body clearfix">
                <div class="form-group">
                    <div class="col-sm-12" style="text-align: center;">
                        <div class="col-xs-12 col-sm-12">
                            <div class="form-input-group">
                                <span class="input-group-addon">名称：</span>
                                <div>
                                    <div class="inline-block form-input-group">
                                        {{#if showData}}
                                            <div>{{input class="input-group-content" type="text" value=information.typename}}</div>
                                        {{else}}
                                            <div class="font-light input-group-content">{{information.typename}}</div>
                                        {{/if}}
                                    </div>
                                </div>
                            </div>
                            <div class="divide-10"></div>
                        </div>
                        <div class="col-xs-12 col-sm-12">
                            <div class="form-input-group">
                                <span class="input-group-addon">备注：</span>
                                <div class="inline-block form-input-group">
                                    {{#if showData}}
                                        <div>{{input class="input-group-content" type="text" value=information.remark }}</div>
                                    {{else}}
                                        <div class="font-light input-group-content">{{information.remark}}</div>
                                    {{/if}}
                                </div>
                            </div>
                            <div class="divide-10"></div>
                        </div>
                    </div>
                </div>
            </div>
        {{/bs-modal-body}}
        {{#bs-modal-footer class="user-add-btn" as |footer|}}
            {{#if addDict}}
                <!-- {{#bs-button action=(action "saveClick" ) type="primary" disabled=prepaidDisabled}}保存{{/bs-button}}
			{{#bs-button action=(action "invitation") type="default"}}取消{{/bs-button}} -->
                {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save" text='确定' clickAction="saveClick" saveClick="saveClick" }}
                {{/ui/mix-button}}
                {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo" text='取消' clickAction="invitation" invitation="invitation" }}
                {{/ui/mix-button}}
            {{else}}
                <!-- {{#bs-button action=(action "editClick" ) type="primary" disabled=prepaidDisabled}}编辑{{/bs-button}}
			{{#bs-button action=(action "delateClick" information) type="default"}}删除{{/bs-button}} -->
                {{#if showData}}
                    {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save" text='确定' clickAction="saveClick" saveClick="saveClick" }}
                    {{/ui/mix-button}}
                    {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo" text='取消' clickAction="invitation" invitation="invitation" }}
                    {{/ui/mix-button}}
                {{else}}
                    {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-edit" text='编辑' clickAction="editClick" editClick="editClick" }}
                    {{/ui/mix-button}}
                    {{#ui/mix-button class="user-btn trash-btn" iconClass="fa fa-trash-o" text='删除' clickAction="delateClick" delById="delateClick" }}
                    {{/ui/mix-button}}
                {{/if}}
            {{/if}}
        {{/bs-modal-footer}}
    {{/bs-modal}}
{{/if}}
